package com.my.structuraltype.composite;


public abstract class Company {
	private String name;
	private int grade;
	
	public Company(String name, int grade) {
		super();
		this.name = name;
		this.grade = grade;
	}
	
	public abstract void add(Company company);
	public abstract void remove(Company company);
	
	public void display() {
		for(int i=0; i<grade; i++) {
			System.out.print("---");
		}
		System.out.println(name);
	}
	
	
	
}
